package com.czx.common.constants;

public enum ResponseCode {
    /**
     * 响应代码设置
     */
    FAIL(0,"失败"),
    SUCCESS(1,"成功"),
    IS_LOGIN(2,"已登录"),
    EXISTS_LOGIN(3,"用户名已经存在"),
    EXISTS_EMAIL(4,"邮箱已经存在"),
    NOT_EXISTS_LOGIN(5,"用户不存在"),
    NOT_FIND(404,"没有找到页面");

    private int code;
    private String msg;

    ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
